package com.xzy.service;

import com.spring.Autowired;
import com.spring.Component;
import com.spring.Scope;

/**
 * @author xzy
 * @date 2021/11/49:59
 */
@Scope("singleton")
@Component("catService")
public class CatServiceImpl implements CatService {

    @Autowired("userService")
    private UserService userService;

    @Override
    public void info() {
        System.out.println("依赖注入：" + userService);
    }
}
